<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{$SETTING[siteurl]}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/jquery.cookie.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body> 


 



{template 'header.html'}




<style type="text/css">
.reg{
	border-bottom:#eee solid 1px;
}
.login{
	border-bottom:#eee solid 1px;
}
.reg strong{
	float: left;
    font-size: 24px;
    height: 80px;
    padding-top: 46px;
    text-align: center;
    width: 200px;
}
.login form{
	 padding: 10px 0 0 20px;
    position: relative;
}  
</style>

<!--<div class="wrapper" style="margin-top:5px">
	<img src="../skin/images/index_banner.jpg"/>
</div>-->


<div class="wrapper"> 
    <div class="main"> 
			
            
            <div class="mod">
            	<div class="head"></div>
                <div class="body reg">
                	<strong>网站社区</strong>
                    <h2>仅需30秒，即可加入我们大的群体！</h2>
                    <small>In 30 seconds, you can join our group!</small>
                    <p>共有<em>{php echo content_all_count();}</em>篇文章，今日更新<em>
                    {php echo content_today_count();}</em>篇文章
                    <br/>共有<em>{php echo sign_all_count();}</em>条个性签名，今日更新<em>
                    {php echo sign_today_count();}</em>条个性签名</p>
                    <p><a rel="nofollow" href="{url("?module=member&action=register")}">注册</a>或者直接使用<a rel="nofollow" href="{url("?module=member&action=qq_connect")}">QQ登录</a></p>
                </div>
            </div> 
    
            <style type="text/css">
				.post_type{	
					background: none repeat scroll 0 0 white;
					border: 1px solid #DDDDDD;
					box-shadow: 0 1px 2px #EEEEEE;
					margin:0 0 20px 20px;
					position: relative;
					height:auto; overflow:hidden;
					display:none;
				}
				.post_type a{
					background: url("themes/default/skin/images/v4-post.png") no-repeat scroll 0 0 transparent;
					display: inline-block;
					float:left;
					display:inline;
					height: 90px;
					overflow: hidden;
					width: 138px;
					border-bottom:0;
					border-right:#e5e5e5 solid 1px;
				}
				.post_type a:hover{
					background-color:#f5f5f5;
				}
				.post_type .text {
					background-position: 0 0;
				}
				.post_type .photo {
					background-position: -138px 0;
				}
				.post_type .audio {
					background-position: -276px 0;
				}
				.post_type .video {
					background-position: -414px 0;
				}
			</style>            
            <div class="post_type">
            	<a href="#" class="text"></a>
            	<a href="#" class="photo"></a>
            	<a href="#" class="audio"></a>
            	<a href="#" class="video"></a>
            </div>
             
             
             <div class="mod">
            	<div class="head"><a href="" onClick="$(function(){$.cookie('isguess', '0'); window.location.href='{SITE_URL}';})">去新版</a></div>
                <div class="body">
                	
                    <ul class="notes">
          	
                      {php $chids = get_chids(0)}
                      {get sql="SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `table_content` WHERE  status=99 ORDER BY listorder DESC, contentid DESC" rows="20" page="$page"}
                      {php $keywords = explode(' ',$r[keywords]);}   
                        <li> 
                            <h3><a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 60)}</a></h3>
                            <div class="attr">
                            {if date('Y-m-d',$r[updatetime]) == date('Y-m-d')}
                                <font color="red">{date('Y-m-d',$r[updatetime])}</font>
                            {else}
                                <font color="gray">{date('Y-m-d',$r[updatetime])}</font>
                            {/if}
                            
                            由<a rel="nofollow" target="_blank" href="{url("?module=member&action=view&userid=$r[userid]")}">{username($r[userid])}</a>发表到<a href="category/{$CATEGORY[$r[catid]]['catdir']}">{$CATEGORY[$r[catid]]['catname']}</a></div>
                            
                            
                            {php list($keyid, $verify) = keyid_make('content', 'title', $r[contentid]);}
                            {if $r[description]}
                            <div class="clear">{str_cut(str_replace('　','',$r[description]),300)} 
                            <a rel="nofollow" href="{url($r[url])}">查看原文</a> | 
                            <a rel="nofollow" href="{url("?module=comment&keyid=$keyid&verify=$verify")}">({php echo comment_get_counts($keyid)})条回应</a> |
                            <a rel="nofollow" href="{url("?module=digg&action=supports&id=$r[contentid]")}">对我有帮助</a> | 
                            <a rel="nofollow" href="{url("?module=digg&action=againsts&id=$r[contentid]")}">对我没帮助</a> | 
                            <a rel="nofollow" href="{url("?module=collect&action=add&contentid=$r[contentid]")}">收藏</a> | 
                            <a rel="nofollow" href="#">分享</a>
                            </div>
                            {/if}
                            
                            
                            {if $db->select("select * from table_attachment where module = 'content' and contentid = $r[contentid]")}
                            <div class="thumb">
                            <a rel="nofollow" href="{url($r[url])}">
                            {get sql="select * from table_attachment where module = 'content' and contentid = $r[contentid]" rows="3"}
                               <img src="{thumb('sites/files/'.$r[filepath],'',100)}"/>  
                            {/get}
                            </a>
                            </div>
                            {/if}
                            
                            {if $keywords}
                            <div>tag:
                                {loop $keywords $k $v}
                                <a href="{url("?module=content&action=tag&name=$v")}">{$v}</a>
                                {/loop}
                            </div>
                            {/if}
                      </li>
            
                      {/get}
                    </ul>
                    
                    <div class="pages">{$pages}</div>
            
                </div>
            </div>
			

    </div>
    
    <div class="side"> 
    
    
   <script language="javascript" src="index.php?module=ads&action=view&adsid=36"></script>
   
   
   {if !$_userid}
   <div class="login mod">
   
   		<h3 class="head">会员登录&nbsp;<small>Member login</small></h3>
   
    	<div class="body">
        	<form action="{url("?module=member&action=login_ajax")}" method="post" name="login_form" id="login_form" onSubmit="return loginSubmit(this);">
            <input name="forward" type="hidden" id="forward" value="{$forward}">
              <p>用户名：<input name="username" type="text" id="username" size="25" class="gray" value="注册邮箱或昵称" onClick="if(this.value=='注册邮箱或昵称'){this.value=''}" onBlur="if(this.value==''){this.value='注册邮箱或昵称'}" /></p>
              <p>密　码：<input name="password" type="password" id="password" value="*********" onClick="if(this.value=='*********'){this.value=''}" onBlur="if(this.value==''){this.value='*********'}" size="15" class="gray"  /><input name="dosubmit" type="submit" value="登 录" />
              </p>
        
              <p><!--Cookie：<select name="cookietime" id="cookietime">
                  <option value="0">不保存</option>
                  <option value="86400" >保存一天</option>
                  <option value="2592000" >保存一月</option>
                  <option value="31536000" >保存一年</option>
                </select>-->
                <input name="cookietime" type="checkbox" value="2592000">&nbsp;记住我的登录信息（请勿在公用电脑或者网吧内使用此项）
                <a rel="nofollow" href="?module=member&action=getpwd" class="orange">忘记密码?</a>
              </p>
            
              {if $M['enablemailcheck']}
              <p><a rel="nofollow" href="{url('?module=member&action=email')}">长时间未收到激活邮件点击这里</a></p>
              {/if}
            </form>
        </div>
    </div>
    
    {else}
    <style>
		.logined{ height:auto; overflow:hidden;}
		.logined .avatar{ height:auto; overflow:hidden; margin:0 0 10px 0;}
		.logined .avatar img{ float:left; display:inline; width:80px; height:80px;}
		.logined .avatar p{ margin:0 0 0 90px;}
		.logined dl{	border-top:#eee solid 1px; border-bottom:#eee solid 1px; height:auto; overflow:hidden; padding:5px 0;
		}
		.logined dl dd{ border-left:#ccc solid 1px; width:80px; float:left; display:inline; text-align:center;}
		.logined dl dd.first{border-left:0;}
	</style>
    <div class="logined mod">
    	<h3 class="head">会员中心&nbsp;<small>Member login</small></h3>
        <div class="body">
        	<div class="avatar">
            	<a href="{url("?module=member")}"><img src="{avatar($_userid)}"/></a>
                <p>嗨.<strong>{$_username}</strong>欢迎回来！<a rel="nofollow" href="{url("?module=member&action=edit")}">完善我的个人资料</a>,让更多志同道合的朋友认识你吧。
                </p>
            </div>
        	<dl>
            	<dd class="first">博客<br/><small>20</small></dd>
            	<dd>粉丝<br/><small>10</small></dd>
            	<dd>代码<br/><small>10</small></dd>
            </dl>	
        </div>
    </div>
    {/if}
    
    <div class="mod">
        <h3 class="head">每日箴言&nbsp;<small>Daily proverb</small> · · · · · ·(<a href="{url("?module=say")}">更多</a>)</h3>
        <div class="body">
            {get sql="select url,userid,username,description,hits from table_say order by sayid DESC" rows="1"}
            {$r[description]}
            {/get}
        </div>
    </div>
    
    
    <div class="mod">
        <h3 class="head">最新公告&nbsp;<small>Announce</small> · · · · · ·(<a href="{url("?module=announce")}">更多</a>)</h3>
            <ul class="body">
          {get sql="select announceid,title,addtime from table_announce order by addtime desc" rows="10"}
            <li>({date('m-d',$r[addtime])})&nbsp;<a href="{url("?module=announce&announceid=$r[announceid]")}">{$r[title]}</a> </li>
          {/get}
          </ul>
     </div>
    
   <div class="mod">
   		<h3 class="head">好友动弹&nbsp;<small>tweet</small> · · · · · ·(<a href="{url("?module=tweet")}">更多</a>)</h3>
    	<ul class="body">
	  {get sql="select userid,username,description,url,updatetime from table_tweet order by tweetid DESC" rows="10"}
		<li>({date('m-d',$r[updatetime])})&nbsp;<a href="{url("?module=member&action=view&userid=$r[userid]")}">@{$r[username]}</a>:&nbsp;<a href="{url($r[url])}" target="{$target}">{$r[description]}</a></li>
	  {/get}
      </ul>
      </div>
      
        <div class="mod">
            <h3 class="head"><span>会员列表</span><small>Members</small> · · · · · ·(<a href="{url("?module=member&action=list")}">更多</a>)</h3>
            <ul class="body users">
            {get sql="select m.*,i.avatar from table_member m ,table_member_info i where m.userid = i.userid and i.avatar <> '' order by m.userid ASC " rows="12"}
            <li>
             <a href="{url("?module=member&action=view&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),40,40)}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
             <!--<br/><a href="{url("?module=space&file=fans&action=add&userid=$r[userid]")}" class="add">关注TA</a>-->
             <!--<p><a href="{url("?module=space&userid=$r[userid]")}">{$r[username]}</a></p>-->
            </li>
          {/get}
          </ul>
        </div>
        
        
        <div class="mod">
            <h3 class="head"><span>最新小组</span><small>Members</small> · · · · · ·(<a href="{url("?module=group")}">更多</a>)</h3>
            <ul class="body users">
            {get sql="select * from table_group where thumb <> '' order by updatetime ASC " rows="12"}
            <li>
             <a href="{url("?module=group&groupid=$r[groupid]")}" title="{$r[title]}"><img src="{thumb($r[thumb],40,40)}" alt="{$r[title]}" target="_blank" width="40" height="40"/></a>
            </li>
          {/get}
          </ul>
        </div>
        
          
     <div class="mod">
        <h3 class="head"><span>商家列表</span>&nbsp;<small>business</small> · · · · · ·(<a href="{url('?module=member&action=apply')}">申请</a>)</h3>
        <ul class="body users">
      <!--{get sql="select * from table_member" rows="12"}-->
        <li>
         <a href="{url("?module=space&userid=$r[userid]")}"><img src="{avatar($r[userid])}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
         <!--<br/><a href="{url("?module=space&file=fans&action=add&userid=$r[userid]")}" class="add">关注TA</a>-->
         <!--<p><a href="{url("?module=space&userid=$r[userid]")}">{$r[username]}</a></p>-->
        </li>
      <!--{/get}-->
      </ul>
    </div>
      
    
     <div class="mod">
    	<h3 class="head">热门阅读&nbsp;<small>hot reads</small> · · · · · ·(<a href="#">更多</a>)</h3>
        <ul class="body">
          <!--{get sql="select title,url,hits from table_content order by hits desc" rows="10"}-->
            <li>({$r[hits]})&nbsp;<a href="{url($r[url])}">{$r[title]}</a></li> 
          <!--{/get}-->
        </ul>
    </div>
          
          
          <div class="mod">
              <h3 class="head">代码分享&nbsp;<small>Codex</small> · · · · · ·(<a href="{url("?module=codex")}">更多</a>)</h3>
                <ul class="body">
                {get sql="SELECT * FROM `table_codex` WHERE  status=99 ORDER BY codexid DESC" rows="20" page="$page"}
                <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
                {/get}
                 </ul>
           </div>  
             
             <div class="mod">
                 <h3 class="head">软件下载&nbsp;<small>Download</small> · · · · · ·(<a href="{url("?module=soft")}">更多</a>)</h3>
                <ul class="body">
                    {get sql="SELECT * FROM `table_soft` WHERE  status=99 ORDER BY softid DESC" rows="20" page="$page"}
                    <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
                    {/get}
                </ul>
            </div>
            
        
        <div class="mod">    
            <h3 class="head">最新博客&nbsp;<small>Blogs</small> · · · · · ·(<a href="{url("?module=blog")}">更多</a>)</h3>
            <ul class="body">
            {get sql="SELECT `title`,`url`,`hits` FROM `table_blog` WHERE  status=99 ORDER BY blogid DESC" rows="20" page="$page"}
            <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
            {/get}
             </ul>
         </div> 
          
        <div class="mod">
            <h3 class="head">最新评论&nbsp;<small>Comments</small></h3>
            <ul class="body">
              <!--{get sql="select commentid,content from table_comment order by addtime desc" rows="10"}-->
                <li><a rel="nofollow" href="#">{str_cut(htmlspecialchars(trim($r[content])),30)}</a></li>
              <!--{/get}-->
              </ul>
         </div>
          
         
        <div class="mod">
            <h3 class="head">热门标签&nbsp;<small>hot tags</small> · · · · · ·(<a href="#">更多</a>)</h3>
            <div class="body keywords">
          <!--{get sql="select tag,hits from table_keyword order by listorder desc,hits desc" rows="10"}-->
            <a href="{url("?module=content&action=tag&name=".urlencode($r[tag]))}">{$r[tag]} <small>({$r[hits]})</small></a>
          <!--{/get}-->
          </div>
        </div>
        
        
        <div class="mod">
            <h3 class="head">站内搜索&nbsp;<small>Search</small></h3>
            <div class="body">
                <form>
                    <input name="" type="text" value="请输入关键字" />
                    <input name="" type="button" value="搜索" />
                 </form>
            </div>
        </div>
        
        <div class="mod">
            <h3 class="head">功能&nbsp;<small>Plugins</small></h3>
            <ul class="body">
                <li><a rel="nofollow" href="admin.php">管理员登陆</a></li>    
                <li><a rel="nofollow" href="{url("?module=rss")}">网站RSS</a></li>    
            </ul>
        </div>
        
        <div class="mod">
        	<div class="head"><span>友情链接&nbsp;<small>Flink</small></span> · · · · · ·(<a href="{url('?module=flink&action=apply')}">申请</a>)</div>
            <div class="body">
                <a rel="nofollow" href="#">百度</a>&nbsp;   
                <a rel="nofollow" href="#">谷歌</a>   
            </div>
        </div> 
        
        
        
          
          
    </div>
</div>

{template 'footer.html'}


<!--<?php 
$msg_guide = 2;
print <<<EOT
-->
<div>
		$msg_guide
</div>
<!--
EOT;
?>-->